refactor: simplify upload API and remove user_id fields #77
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Updated the construe upload code system API to streamline the interface and improve usability. The API now returns 202 immediately with embedding generation running asynchronously, requiring users to poll the status endpoint to check completion.
Key changes:
🌿 Generated with Fern
Note
Medium Risk
Introduces breaking type and behavior changes to the code-system upload flow (async processing/polling and request/response shape changes) and removes fields from multiple public response types, which may require downstream consumer updates.
Overview
Breaking SDK update to v6.0.0 that changes
construe.uploadCodeSystemto a simplifiedUploadRequestinterface (single shape with requiredformatand optional file/column fields) and updates docs/examples to reflect async embedding generation where callers must pollGET /construe/codes/systems/{codesystem}for completion.Removes
user_idfrom various returned/template types acrossagent,fhirProvider,summary,tools(MCP server/tool), andworkflows, updates upload response shape to includename/version, deletes the older discriminated-union upload request types, and adjusts wire tests accordingly.Written by Cursor Bugbot for commit d7d4404. This will update automatically on new commits. Configure here.